Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow RedisMutex’s locking duration and polling interval to be customizable #74

Merged
merged 4 commits into from
Mar 10, 2022
Merged

Allow RedisMutex’s locking duration and polling interval to be customizable #74

merged 4 commits into from
Mar 10, 2022

Conversation

thukim
Copy link
Contributor

@thukim thukim commented Oct 13, 2019

Currently, RedisMutex's sleep and block options are fixed with these 2 values 0.3 and 2, respectively. When the number of jobs is large, we will frequently get the error RedisMutex::LockError.
I have updated the code and opened this PR to make them customizable based on the number of jobs of a workflow.
Additionally, it also helps to solve this issue #57.

Kimmie added 4 commits October 13, 2019 16:14
…izable

	- Update the configuration file with 2 new customizable fields: locking_duration and polling_internal
…izable

	- call RedisMutex.with_lock with the customizable polling_interval and locking_duration
@pokonski pokonski merged commit e3d30da into chaps-io:master Mar 10, 2022
@pokonski
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants